//
//  MoBanThirteenModel.m
//  MoBan
//
//  Created by apple on 16/7/28.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "MoBanThirteenModel.h"
#import "MoBanThirteenOneCell.h"
#import "MoBanThirTennTwoCell.h"
#import "MoBanThirTennThreeCell.h"
#import "MoBanThirTennFourCell.h"

@interface MoBanThirteenModel()
{
    NSMutableArray *_array;
}
@property(nonatomic,strong)NSMutableArray *array;
@end
@implementation MoBanThirteenModel
-(NSMutableArray *)array
{
    if (!_array) {
        _array = [NSMutableArray arrayWithObjects:@"MoBanThirteenOneCell",@"MoBanThirTennTwoCell",@"MoBanThirTennThreeCell",@"MoBanThirTennFourCell", nil];
    }
    return _array;
}
-(void)setArray:(NSMutableArray *)array
{
    _array = array;
}
+(CGFloat)ZBTbaleviewCellHightAtindexrow:(NSInteger)row
{

    switch (row) {
        case 0:
            return 160*Kscr;
            break;
        case 1:
            return 160*Kscr;
            break;
        case 2:
            return 80*Kscr;
            break;
            
        default:
            return 60*Kscr;
            break;
    }
    
}

+(UITableViewCell *)ZBTableview:(UITableView *)tableview StyleAtIndex:(NSInteger)row;
{
    if (row==0) {
        
        MoBanThirteenOneCell *cell = [tableview dequeueReusableCellWithIdentifier:@"MoBanThirteenOneCell"];
        if (!cell) {
            cell = [[MoBanThirteenOneCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MoBanThirteenOneCell"];
        }
        
        return cell;

    }else if (row==1)
    {
        MoBanThirTennTwoCell *cell = [tableview dequeueReusableCellWithIdentifier:@"MoBanThirTennTwoCell"];
        if (!cell) {
            cell = [[MoBanThirTennTwoCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MoBanThirTennTwoCell"];
        }
        
        return cell;

    
    }else if (row==2)
    {
        MoBanThirTennThreeCell *cell = [tableview dequeueReusableCellWithIdentifier:@"MoBanThirTennThreeCell"];
        if (!cell) {
            cell = [[MoBanThirTennThreeCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MoBanThirTennThreeCell"];
        }
        
        return cell;

    
    }
    
    MoBanThirTennFourCell *cell = [tableview dequeueReusableCellWithIdentifier:@"MoBanThirTennFourCell"];
    if (!cell) {
        cell = [[MoBanThirTennFourCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MoBanThirTennFourCell"];
    }
    return cell;
    
    
    
}


@end
